package com.huicoo.forestmanager.ui.patrol.forestCampTask.model;

import com.huicoo.forestmanager.network.HttpService;
import com.huicoo.forestmanager.network.bean.patrol.AttachmentEntity;
import com.huicoo.forestmanager.network.bean.patrol.ReportEventBean;
import com.huicoo.forestmanager.network.bean.patrol.UploadFileBean;
import com.huicoo.forestmanager.network.bean.patrol.VerifyEventBean;
import com.huicoo.forestmanager.network.bean.patrol.VerifyEventCommentBean;
import com.huicoo.forestmanager.ui.patrol.forestCampTask.contract.ForestCampTaskVerifyEventContract;

import java.util.HashMap;
import java.util.List;

import okhttp3.ResponseBody;
import retrofit2.Call;

/**
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2019/4/9		    Administrator
 * 问题验证
 */
public class ForestCampTaskVerifyEventModel implements ForestCampTaskVerifyEventContract.Model {

    @Override
    public Call<UploadFileBean> uploadFile(HashMap<String, String> params, AttachmentEntity attachment) {
        return HttpService.getInstance().uploadFile(params, attachment);
    }

    @Override
    public Call<VerifyEventBean> replyEvent(HashMap<String, String> params) {
        return HttpService.getInstance().replyEvent(params);
    }

    @Override
    public Call<VerifyEventBean> verifyEvent(HashMap<String, String> params) {
        return HttpService.getInstance().verifyEvent(params);
    }

    @Override
    public Call<VerifyEventCommentBean> getComment(HashMap<String, String> params) {
        return HttpService.getInstance().getComment(params);
    }

    @Override
    public Call<ResponseBody> downloadFile(String fileUrl) {
        return HttpService.getInstance().downloadFile(fileUrl);
    }
}
